package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 创业项目表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_project_info")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProjectModel {
    @TableId(type = IdType.AUTO)
    private Integer id;//创业项目ID
    private String projectName;//项目名称
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp releaseTime;//发布时间
    private Double investment;//投资金额(万)
    private String phone;//联系人手机号
    private String projectContent;//项目内容
    private String developProspect;//发展前景
    private Integer contactCount;//联系次数(电话拨打)


    @TableField(exist = false)
    private String phoneMi;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
}
